package com.xtaller.business.b.controller;

import com.xtaller.business.b.client.AClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.xml.ws.Action;

/**
 * Created by Taller on 2017/8/6.
 */
@RefreshScope
@RestController
public class TestController {

    @Autowired
    private AClient aClient;

    @GetMapping(value = "/v1")
    public String printServiceB() {
        return "b server print";
    }

    @GetMapping(value = "/v2")
    public String printServiceA() {
        return aClient.printServiceA();
    }
}
